package com.tianji.learning.controller.admin;


import com.tianji.learning.service.InteractionNotesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/notes")
public class InteractionNotesAdminController {

    @Autowired
    private InteractionNotesService interactionNotesService;

    @PutMapping("/{id}/hidden/{hidden}")
    public void updateHidden(@PathVariable("id") Long id,@PathVariable("hidden")  Boolean hidden) {
        interactionNotesService.updateHidden(id, hidden);
    }
}
